home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr24
/
dup21.zip
/
H2F21.DOC
< prev
Wrap
Text File
|
1993-04-08
|
16KB
|
508 lines
H 2 F
Version 2.1
Documentation
H2F Copyright 1992, 1993 Chang Ping Lee ALL RIGHTS RESERVED
H2F Copyright 1992, 1993 Chang Ping Lee page 1
Table Of Contents
Disclaimer of warranty. . . . . . . . . . . . . . . . . . . . 2
License . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1. Introduction . . . . . . . . . . . . . . . . . . . . . . 4
2. How to install and run H2F . . . . . . . . . . . . . . . 5
3. Configuration file and command line arguments. . . . . . 6
4. Inside CONFIG.DCF. . . . . . . . . . . . . . . . . . . . 7
5. Command line arguments and examples. . . . . . . . . . . 8
6. What will be copied, what will not . . . . . . . . . . . 10
7. Benchmark. . . . . . . . . . . . . . . . . . . . . . . . 11
H2F Copyright 1992, 1993 Chang Ping Lee page 2
DISCLAIMER OF WARRANTY
THIS SOFTWARE AND MANUAL ARE SUPPLIED "AS IS." THE AUTHOR HEREBY
DISCLAIMS ALL WARRANTIES RELATING TO THIS SOFTWARE AND ITS
DOCUMENTATION FILE, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO DAMAGE TO HARDWARE, SOFTWARE AND/OR DATA FROM USE OF THIS
PRODUCT. IN NO EVENT WILL THE AUTHOR OF THIS SOFTWARE BE LIABLE
TO YOU OR ANY OTHER PARTY FOR ANY DAMAGES. YOUR USE OF THIS
SOFTWARE INDICATES THAT YOU HAVE READ AND AGREE TO THESE AND
OTHER TERMS INCLUDED IN THIS DOCUMENTATION FILE.
DUE TO THE NATURE OF EVOLVING PROGRAMMING AND THE VARIOUS
HARDWARE AND SOFTWARE ENVIRONMENTS IN WHICH THIS SOFTWARE MAY
BE USED, IT IS UNDERSTOOD THAT OCCASIONAL "BUGS" OR UNFITNESS
MAY ARISE. THE USER SHOULD ALWAYS TEST THIS SOFTWARE THOROUGHLY
WITH NON-CRITICAL DATA BEFORE RELYING ON IT.
H2F Copyright 1992, 1993 Chang Ping Lee page 3
LICENSE
1. In return for the payment of a one time fee, the customer is
granted a non-commercial or commercial license.
2. If the registration is for a non-commercial license the customer
can use the software for personal backup or other usages in which
the customer make no profit and the duplicated diskettes of any
particular source diskette (or image file) are not distributed to
more than ten persons. In addition, the software may not be used in
any business, organization, institution or government agency.
3. If the registration is for a commercial license the customer can
use the software in a business, organization, institution or
government agency, for profit or non-profit purposes. With a
commercial license the customer can distributed the duplicated
diskettes to as many persons as he or she likes
4. The customer may use the product just-like-a-book which means
this software can be used by more than one person and can be moved
from one computer to another so long as there is NO POSSIBILITY of
it being used by two different persons on two different computers
at the same time, just like a book can not be read by two different
persons in two different places at the same time.
5. This software and its documentation and all supplemental files
are property of the author and may not be duplicated for sale to
any third parties without written permission from the author.
6. The customer agrees that this product is protected by United
States copyright law and international copyright treaty provisions.
Purchase of this license does not transfer any right, title or
interest in the product to the customer except as specifically set
forth in this license agreement.
7. The author of this software product reserves the right to
terminate this license upon breach.
H2F Copyright 1992, 1993 Chang Ping Lee page 4
1. INTRODUCTION:
H2F (Hard disk to Floppy) is a utility to copy recursively from
current directory on hard disk or RAM disk to a diskette at very
high speed. This program combined with H2F is ideal for backing
up a small directory.
For performance information see page 9 of this documentation.
WARNING: H2F do not preserve any file on floppy. It creates a
new diskette no matter the floppy contains any data or
not. ALL DATA ON TARGET DISKETTE WILL BE OVERWRITTEN.
H2F Copyright 1992, 1993 Chang Ping Lee page 5
2. HOW TO INSTALL AND RUN H2F
Copy the EXE and DOC files to a directory created for DCF and
DUP. Define the PATH in your AUTOEXEC.BAT to include this
directory or the directory of a one-line batch file which
contains the path of H2F.EXE.
Type "H2F" followed by the "enter" key to execute the program.
The first time you run the program it will ask for a formatted
diskette so that it can create a FMT.DAT file.
After the FMT.DAT file has been created, you can start copying
from a hard disk or RAM disk directory to a floppy disk. You
can specify the source directory and the target floppy drive on
the command line. If no source directory is specified the
current directory is assumed.
If you only have one or two floppy drives you can skip the rest
of this section.
In systems with four floppy drives, if a device driver which
came with the controller is installed H2F usually can detect the
drive letters automatically and the drive letters should be used
to specify the third and fourth drives. If no device driver
(TSR) is installed you need to use 3 and 4 as the drive letters
for the third and fourth drives. In this case you need to edit a
text file, CONFIG.DCF, that provides the information on floppy
drive capacity.
The following is an example of the text file in which a 1.2MB,
a 1.44MB and a 360KB drives are specified as the first, the
second and the third drives with drive letters A: B: and G:,
respectively. The 0 on the last line indicates that the fourth
drive is not installed. If all drives are defined, such as in
the example, H2F will not check with DOS for drive capacity.
This can speed up the initialization process.
$DRIVE
1 1200 A:
2 1440 B:
3 360 G:
4 0
H2F Copyright 1992, 1993 Chang Ping Lee page 6
3. CONFIGURATION FILE AND COMMAND LINE ARGUMENTS
If you have read the DOC file of DCF you can skip this section
and continue at section 5.
Basically, configuration file is used to stored information
which you don't expect to change often while command line
arguments are used for specifying more dynamic parameters.
For example, it's unlikely that you need to change the drive
capacity often, so these information can only be specified in
the configuration file, not on the command line.
On the other hand, it's unlikely that you use the same source
and target each time, so these can only be specified on the
command line, not in the configuration file.
The only information you can specified both in the configuration
file and command line is the default options. You may have your
own idea how the defaults should be (in configuration file) and
make a slight adjustment (on command line) when necessary. In
other words, command line options override the configuration
file options.
The configuration file is a text file. The default file name is
CONFIG.DCF. If you use the default file name you can simply type
"H2F" at DOS prompt and the program will retrieve information
from the file automatically.
There are cases that you need to use a different name. For
example, you may want to keep two configuration files for
different applications. In this case you need to provide the
file name on the command line. For example, if file ABC is your
configuration file you need to type "H2F @ABC" at DOS prompt.
The usage of the configuration file is explained in the next
section. The usage of command line arguments is fully explained
in section 5.
H2F Copyright 1992, 1993 Chang Ping Lee page 7
4. INSIDE CONFIG.DCF
If you have read the DOC file of DCF you can skip this section
and continue at section 5.
The user can specify up to seven keywords in the configuration
file. Each keyword specify a specific kind of parameters or
information.
$DRIVE : You don't need to provide this information except for
the following two cases. If the program fails to get
the correct drive capacity from your system or if you
want to access four drives without installing the
device driver which came with the controller you can
use this keyword to specify the drive capacity in the
CONFIG.DCF file.
The next few lines contain parameters about diskette
drives in your system. On each line, the first number
specify the drive, 1 for drive A:, 2 for drive B:, 3
and 4 for third and fourth drives in a four drive
system. The second number is the drive capacity in KB.
A drive letter (optional) can be specified at the end.
See section 4 of DCF40F.DOC for details.
$OPTION : The next few lines specify the default options used by
H2F at start up. The format is the same as those on
the command line but without the leading /. See
section 5 for details.
$SYSPATH : The next line specifies the path for system file.
For example, FMT.DAT is considered a system file.
$IMGPATH : Not used by H2F.
$TMPPATH : The next line specifies the alternative path for the
program to create temporary files. If you have a RAM
disk, you can specify the path to be on your RAM
disk. Not only speed will be faster but also you save
your hard disk from unnecessary burden.
$NOMSG : Not used by H2F.
H2F Copyright 1992, 1993 Chang Ping Lee page 8
5. COMMAND LINE ARGUMENTS AND EXAMPLES
If you have read the DOC file of DCF you only need to learn the
q and t options.
There are fourteen options you can specify using command line
arguments. You can also specify these options in the CONFIG.DCF
file. The command line options override the CONFIG.DCF options.
In addition, you can also specify an alternative configuration
file on the command line. See examples at the end of this
section.
Note that the '+' sign after any option can be omitted.
/c followed by +/-. Set Compare ON/OFF. When ON the program
performs read-back and byte-by-byte comparison for every
track written to a target diskette. Default is ON.
/m followed by +/-. Set Format ON/OFF. When ON the program
formats before writing to target diskettes. If OFF the
program will format only when necessary. Default is OFF.
/f followed by +/-. Set Fast ON/OFF. When ON the program will
only write the portion with active data and skip empty
portion of diskettes. Default is ON.
/s followed by +/-. Set Sound ON/OFF. When ON the program will
give an audio signal after writing a diskette or 20 seconds
of inactivity. Default is ON.
/q followed by +/-. Set Query ON/OFF. When ON the program will
give warning that all files on the target diskette will be
overwritten. Default is ON.
/k Not used by H2F.
/n Not used by H2F.
/d followed by +/-. Set Delay ON/Off. If your machine is not so
slow as an 8088/4.77MHz and would like to see whether the
program can copy at highest speed on your system try /d-.
Default is ON.
H2F Copyright 1992, 1993 Chang Ping Lee page 9
/t followed by +/-. Set target density. In DCF, this option is
used for source density. In H2f, however, it is used for
specifying target density. If + the program creates high
density diskette in a 1.2 or 1.44MB drive. If - it creates
low density diskette instead. No default is assumed.
/o followed by +/-. Set "mono in color" mode. In a color
system, you can use /o+ to force H2F run in black and white.
Default is -.
/x Not used by H2F.
/b Not used by H2F.
/a followed by +/-. Set analyze ON/OFF. If ON the program will
check density before copying to a target diskette. If you
copy a low density to a high density disk (usually a
mistake) the program will give a warning and you can decide
to skip, go ahead, or format before writing. Default is ON.
/w Not used by H2F.
@file_name specify alternative name for the configuration file.
dir_name define dir_name as source directory.
drive: define a floppy drive as target drive.
EXAMPLES:
H2F /t+q-d- Set defaults of target Density, Query and Delay
to HIGH, OFF and OFF.
H2F /tq-d- Same as the last example. The '+' can be and is
omitted.
H2F A: Copy current directory to drive A:.
H2F D1 B: Copy sub-directory D1 to drive B:.
H2F C:\D1 3: Copy directory C:\D1 to the third drive, when
device driver is not installed.
H2F C:\D1 G: Same as the last example, but in this case the
driver is installed and the drive letters is G.
H2F Copyright 1992, 1993 Chang Ping Lee page 10
6. WHAT WILL BE COPIED, WHAT WILL NOT
H2F copies the current directory recursively to a floppy which
means all the files and sub directories structure in the current
directory are copied to the target diskette.
IMPORTANT: H2F does NOT preserve any file on the target diskette.
Make sure the diskette do not contains important data
before using H2F.
The names, times, dates and attributes of all the files copied to
the target diskette are preserved.
H2F Copyright 1992, 1993 Chang Ping Lee page 11
7. BENCHMARK
H2F vs XCOPY F2H vs XCOPY
--------------------------------------------------
Case 1 (1.2 MB) 8 vs 40 8 vs 17
Case 1 (1.44MB) 9 vs 50 9 vs 19
Case 2 (1.2 MB) 9 vs 33 9 vs 18
Case 2 (1.44MB) 8 vs 40 9 vs 19
Case 3 (360 KB) 18 vs 135 19 vs 27
Case 3 (1.2 MB) 11 vs 93 12 vs 19
Case 3 (1.44MB) 11 vs 106 12 vs 18
Note: (1) Case 1 contains 36 files and no sub directory.
Case 2 contains 13 files in 21 sub directories.
Case 3 contains 80 files in 28 sub directories.
Total file size is about 300 KB in all cases.
(2) Performance varies on different system. The
above benchmark result is provided as examples,
NOT guarantee.
(3) The above results were measured with a RAM disk
on a 33 MHz 386 compatible system.